<% objects.reverse.each do |object| %>
    <h1>
        <%= object.name %>
        <% if object.is_a?(YARD::CodeObjects::MethodObject) and !object.parameters.empty? %>
            <small>(<%= object.parameters.map {|p| "#{p[0]}#{p[1] and p[0].end_with?(':') ? ' ' : (p[1] ? ' = ' : '')}#{p[1]}"}.join(', ') %>)</small>
        <% end %>
    </h1>
    <% unless object.files.empty? %>
        <h2>
            Defined in:
        </h2>
        <ul>
            <% object.files.each do |f| %>
                <li><%= f %></li>
            <% end %>
        </ul>
    <% end %>
    <% if object.is_a?(YARD::CodeObjects::NamespaceObject) %>
        <%= erb :_namespace, layout: false, locals: {object: object} %>
    <% elsif object.is_a?(YARD::CodeObjects::MethodObject) %>
        <%= erb :_method, layout: false, locals: {object: object} %>
    <% end %>
<% end %>
